import config from "@/config"
import http from "@/utils/request"

export default {
    //提醒
	plan:{
		list: {
			url: `${config.API_URL}/adminapi/Schedule/lists`,
			name: "列表",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
		edit: {
			url: `${config.API_URL}/adminapi/Schedule/edit`,
			name: "修改",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		add: {
			url: `${config.API_URL}/adminapi/Schedule/add`,
			name: "添加",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		delete: {
			url: `${config.API_URL}/adminapi/Schedule/delete`,
			name: "删除",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		get_list: {
			url: `${config.API_URL}/adminapi/Schedule/all`,
			name: "获取全部",
			get: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		detail: {
			url: `${config.API_URL}/adminapi/Schedule/detail`,
			name: "详情",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        checkStatus: {
			url: `${config.API_URL}/adminapi/Schedule/changeStatus`,
			name: "完成任务",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
	},
    //项目管理
	project:{
		list: {
			url: `${config.API_URL}/adminapi/shop.project/lists`,
			name: "列表",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
		all: {
			url: `${config.API_URL}/adminapi/shop.project/all`,
			name: "全部",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
		detail: {
			url: `${config.API_URL}/adminapi/shop.project/detail`,
			name: "详情",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
		edit: {
			url: `${config.API_URL}/adminapi/shop.project/edit`,
			name: "修改",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		add: {
			url: `${config.API_URL}/adminapi/shop.project/add`,
			name: "添加",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		delete: {
			url: `${config.API_URL}/adminapi/shop.project/delete`,
			name: "删除",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},

	},






    // 商品管理
    goods: {
        list: {
			url: `${config.API_URL}/adminapi/base.Goods/lists`,
			name: "列表",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
        all: {
			url: `${config.API_URL}/adminapi/base.Goods/all`,
			name: "全部",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
		edit: {
			url: `${config.API_URL}/adminapi/base.Goods/edit`,
			name: "修改",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		add: {
			url: `${config.API_URL}/adminapi/base.Goods/add`,
			name: "添加",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		delete: {
			url: `${config.API_URL}/adminapi/base.Goods/delete`,
			name: "删除",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
    },
    // 样本管理
    sample: {
        list: {
			url: `${config.API_URL}/adminapi/base.Sample/lists`,
			name: "列表",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
		edit: {
			url: `${config.API_URL}/adminapi/base.Sample/edit`,
			name: "修改",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		add: {
			url: `${config.API_URL}/adminapi/base.Sample/add`,
			name: "添加",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		delete: {
			url: `${config.API_URL}/adminapi/base.Sample/delete`,
			name: "删除",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
    },
    // 颜色管理
    color: {
        list: {
			url: `${config.API_URL}/adminapi/base.Color/lists`,
			name: "列表",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
        all: {
			url: `${config.API_URL}/adminapi/base.Color/all`,
			name: "列表",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
		edit: {
			url: `${config.API_URL}/adminapi/base.Color/edit`,
			name: "修改",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		add: {
			url: `${config.API_URL}/adminapi/base.Color/add`,
			name: "添加",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		delete: {
			url: `${config.API_URL}/adminapi/base.Color/delete`,
			name: "删除",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
    },
    // 折码管理
    folding: {
        list: {
			url: `${config.API_URL}/adminapi/base.Folding/lists`,
			name: "列表",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
        all: {
			url: `${config.API_URL}/adminapi/base.Folding/all`,
			name: "列表",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
		edit: {
			url: `${config.API_URL}/adminapi/base.Folding/edit`,
			name: "修改",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		add: {
			url: `${config.API_URL}/adminapi/base.Folding/add`,
			name: "添加",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		delete: {
			url: `${config.API_URL}/adminapi/base.Folding/delete`,
			name: "删除",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        update_status: {
            url: `${config.API_URL}/adminapi/base.Folding/update_default`,
            name: "仓库切换",
            post: async function(data={}){
                return await http.post(this.url, data);
            }
        },
    },
    // 地区管理
    area: {
        list: {
			url: `${config.API_URL}/adminapi/base.Area/lists`,
			name: "列表",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
        all: {
			url: `${config.API_URL}/adminapi/base.Area/all`,
			name: "全部",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
		edit: {
			url: `${config.API_URL}/adminapi/base.Area/edit`,
			name: "修改",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		add: {
			url: `${config.API_URL}/adminapi/base.Area/add`,
			name: "添加",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		delete: {
			url: `${config.API_URL}/adminapi/base.Area/delete`,
			name: "删除",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
    },
    //仓库
	ware:{
		list: {
			url: `${config.API_URL}/adminapi/shop.ShopWare/lists`,
			name: "获取仓库列表",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
        all: {
			url: `${config.API_URL}/adminapi/shop.ShopWare/all`,
			name: "获取仓库列表",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
		edit: {
			url: `${config.API_URL}/adminapi/shop.ShopWare/edit`,
			name: "修改仓库",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		add: {
			url: `${config.API_URL}/adminapi/shop.ShopWare/add`,
			name: "添加仓库",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		delete: {
			url: `${config.API_URL}/adminapi/shop.ShopWare/delete`,
			name: "删除仓库",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		detail: {
			url: `${config.API_URL}/adminapi/shop.ShopWare/detail`,
			name: "仓库详情",
			get: async function(params){
				return await http.get(this.url, params);
			}
		},
        position: {
			url: `${config.API_URL}/adminapi/shop.ShopWare/getPosition`,
			name: "获取库位",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
	},
    // 机台管理
    machine: {
        list: {
			url: `${config.API_URL}/adminapi/base.Machine/lists`,
			name: "列表",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
        all: {
			url: `${config.API_URL}/adminapi/base.Machine/all`,
			name: "列表",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
		edit: {
			url: `${config.API_URL}/adminapi/base.Machine/edit`,
			name: "修改",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		add: {
			url: `${config.API_URL}/adminapi/base.Machine/add`,
			name: "添加",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		delete: {
			url: `${config.API_URL}/adminapi/base.Machine/delete`,
			name: "删除",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
    },
    // 次品种类管理
    reject: {
        list: {
			url: `${config.API_URL}/adminapi/base.RejectCate/lists`,
			name: "列表",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
        all: {
			url: `${config.API_URL}/adminapi/base.RejectCate/all`,
			name: "列表",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
		edit: {
			url: `${config.API_URL}/adminapi/base.RejectCate/edit`,
			name: "修改",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		add: {
			url: `${config.API_URL}/adminapi/base.RejectCate/add`,
			name: "添加",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		delete: {
			url: `${config.API_URL}/adminapi/base.RejectCate/delete`,
			name: "删除",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
    },
    // 打印模版管理
    print: {
        list: {
			url: `${config.API_URL}/adminapi/base.Template/lists`,
			name: "列表",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
        all: {
			url: `${config.API_URL}/adminapi/base.Template/all`,
			name: "全部",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
		edit: {
			url: `${config.API_URL}/adminapi/base.Template/edit`,
			name: "修改",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		add: {
			url: `${config.API_URL}/adminapi/base.Template/add`,
			name: "添加",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		delete: {
			url: `${config.API_URL}/adminapi/base.Template/delete`,
			name: "删除",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
    },
    // 打印模版管理
    printcate: {
        list: {
			url: `${config.API_URL}/adminapi/base.type/lists`,
			name: "列表",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
        all: {
			url: `${config.API_URL}/adminapi/base.type/all`,
			name: "全部",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
		edit: {
			url: `${config.API_URL}/adminapi/base.type/edit`,
			name: "修改",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		add: {
			url: `${config.API_URL}/adminapi/base.type/add`,
			name: "添加",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		delete: {
			url: `${config.API_URL}/adminapi/base.type/delete`,
			name: "删除",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
    },
    //供应商
	apply: {
		list: {
			url: `${config.API_URL}/adminapi/shop.shopApply/lists`,
			name: "获取供应商列表",
			get: async function (data = {}) {
				return await http.get(this.url, data);
			},
		},
		all: {
			url: `${config.API_URL}/adminapi/shop.shopApply/all`,
			name: "获取供应商列表 -- 全部",
			get: async function (data = {}) {
				return await http.get(this.url, data);
			},
		},
		edit: {
			url: `${config.API_URL}/adminapi/shop.shopApply/edit`,
			name: "修改供应商",
			post: async function (data = {}) {
				return await http.post(this.url, data);
			},
		},
		add: {
			url: `${config.API_URL}/adminapi/shop.shopApply/add`,
			name: "添加供应商",
			post: async function (data = {}) {
				return await http.post(this.url, data);
			},
		},
		delete: {
			url: `${config.API_URL}/adminapi/shop.shopApply/delete`,
			name: "删除供应商",
			post: async function (data = {}) {
				return await http.post(this.url, data);
			},
		},
		deleteAll: {
			url: `${config.API_URL}/adminapi/shop.shopApply/deleteAll`,
			name: "删除供应商",
			post: async function (data = {}) {
				return await http.post(this.url, data);
			},
		},
		update_status: {
			url: `${config.API_URL}/adminapi/shop.shopApply/update_status`,
			name: "修改供应商状态",
			post: async function (params) {
				return await http.post(this.url, params);
			},
		},
        import: {
            url: `${config.API_URL}/adminapi/shop.shopApply/import`,
            name: "供应商导入",
            post: async function(data={}){
                return await http.post(this.url, data);
            }
        },
        unbind: {
            url: `${config.API_URL}/adminapi/shop.shopApply/unbind`,
            name: "供应商解绑账号",
            post: async function(data={}){
                return await http.post(this.url, data);
            }
        },
	},
	//供应商分类
	applyCate: {
		edit: {
			url: `${config.API_URL}/adminapi/shop.shopApplyCate/edit`,
			name: "修改供应商分类",
			post: async function (data = {}) {
				return await http.post(this.url, data);
			},
		},
		add: {
			url: `${config.API_URL}/adminapi/shop.shopApplyCate/add`,
			name: "添加供应商分类",
			post: async function (data = {}) {
				return await http.post(this.url, data);
			},
		},
		delete: {
			url: `${config.API_URL}/adminapi/shop.shopApplyCate/delete`,
			name: "删除供应商分类",
			post: async function (data = {}) {
				return await http.post(this.url, data);
			},
		},
		all: {
			url: `${config.API_URL}/adminapi/shop.shopApplyCate/all`,
			name: "获取所有供应商分类",
			get: async function (params) {
				return await http.post(this.url, params);
			},
		},
	},
    // 供应商商品
    shopApply: { 
        list: {
            url: `${config.API_URL}/adminapi/shop.ShopApply/proLists`,
            name: "供应商商品",
            get: async function (params) {
                return await http.get(this.url, params);
            },
        },
        add: {
			url: `${config.API_URL}/adminapi/shop.shopApply/proAdd`,
			name: "添加供应商商品",
			post: async function (data = {}) {
				return await http.post(this.url, data);
			},
		},
        edit: {
			url: `${config.API_URL}/adminapi/shop.shopApply/proEdit`,
			name: "修改供应商商品",
			post: async function (data = {}) {
				return await http.post(this.url, data);
			},
		},
		delete: {
			url: `${config.API_URL}/adminapi/shop.shopApply/proGoodsDelete`,
			name: "删除供应商商品",
			post: async function (data = {}) {
				return await http.post(this.url, data);
			},
		},
        detail: {
			url: `${config.API_URL}/adminapi/shop.shopApply/proDetail`,
			name: "删除供应商商品",
			get: async function (data = {}) {
				return await http.get(this.url, data);
			},
		},
	},
    //客户
	client:{
		list: {
			url: `${config.API_URL}/adminapi/shop.ShopCustomer/lists`,
			name: "获取客户列表",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
        all: {
			url: `${config.API_URL}/adminapi/shop.ShopCustomer/all`,
			name: "获取客户列表 -- 全部",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
		edit: {
			url: `${config.API_URL}/adminapi/shop.ShopCustomer/edit`,
			name: "修改客户",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		add: {
			url: `${config.API_URL}/adminapi/shop.ShopCustomer/add`,
			name: "添加客户",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		delete: {
			url: `${config.API_URL}/adminapi/shop.ShopCustomer/delete`,
			name: "删除客户",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        detail: {
			url: `${config.API_URL}/adminapi/shop.ShopCustomer/detail`,
			name: "客户详情",
			get: async function(params){
				return await http.get(this.url, params);
			}
		},
		update_status: {
			url: `${config.API_URL}/adminapi/shop.ShopCustomer/updateStatus`,
			name: "修改客户状态",
			post: async function(params){
				return await http.post(this.url, params);
			}
		},
        import: {
            url: `${config.API_URL}/adminapi/shop.ShopCustomer/import`,
            name: "供应商导入",
            post: async function(data={}){
                return await http.post(this.url, data);
            }
        },
	},
    //需方
	buyer:{
		list: {
			url: `${config.API_URL}/adminapi/base.Buyer/lists`,
			name: "获取需方列表",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
        all: {
			url: `${config.API_URL}/adminapi/base.Buyer/all`,
			name: "获取需方列表 -- 全部",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
		edit: {
			url: `${config.API_URL}/adminapi/base.Buyer/edit`,
			name: "修改需方",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		add: {
			url: `${config.API_URL}/adminapi/base.Buyer/add`,
			name: "添加需方",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		delete: {
			url: `${config.API_URL}/adminapi/base.Buyer/delete`,
			name: "删除需方",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        detail: {
			url: `${config.API_URL}/adminapi/base.Buyer/detail`,
			name: "需方详情",
			get: async function(params){
				return await http.get(this.url, params);
			}
		},
		update_status: {
			url: `${config.API_URL}/adminapi/base.Buyer/updateStatus`,
			name: "修改需方状态",
			post: async function(params){
				return await http.post(this.url, params);
			}
		},
	},

    //账户
	account:{
		list: {
			url: `${config.API_URL}/adminapi/base.Account/lists`,
			name: "获取账户列表",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
        all: {
			url: `${config.API_URL}/adminapi/base.Account/all`,
			name: "获取账户列表 -- 全部",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
		edit: {
			url: `${config.API_URL}/adminapi/base.Account/edit`,
			name: "修改账户",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		add: {
			url: `${config.API_URL}/adminapi/base.Account/add`,
			name: "添加账户",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		delete: {
			url: `${config.API_URL}/adminapi/base.Account/delete`,
			name: "删除账户",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        detail: {
			url: `${config.API_URL}/adminapi/base.Account/detail`,
			name: "账户详情",
			get: async function(params){
				return await http.get(this.url, params);
			}
		},
		update_status: {
			url: `${config.API_URL}/adminapi/base.Account/updateStatus`,
			name: "修改账户状态",
			post: async function(params){
				return await http.post(this.url, params);
			}
		},
        import: {
            url: `${config.API_URL}/adminapi/base.Account/import`,
            name: "供应商导入",
            post: async function(data={}){
                return await http.post(this.url, data);
            }
        },
	},

    //付款方式
	pay_type:{
		list: {
			url: `${config.API_URL}/adminapi/base.Paytype/lists`,
			name: "获取付款方式列表",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
        all: {
			url: `${config.API_URL}/adminapi/base.Paytype/all`,
			name: "获取付款方式列表 -- 全部",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
		edit: {
			url: `${config.API_URL}/adminapi/base.Paytype/edit`,
			name: "修改付款方式",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		add: {
			url: `${config.API_URL}/adminapi/base.Paytype/add`,
			name: "添加付款方式",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		delete: {
			url: `${config.API_URL}/adminapi/base.Paytype/delete`,
			name: "删除付款方式",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        detail: {
			url: `${config.API_URL}/adminapi/base.Paytype/detail`,
			name: "付款方式详情",
			get: async function(params){
				return await http.get(this.url, params);
			}
		},
	},

    //收支事项
	matter:{
		list: {
			url: `${config.API_URL}/adminapi/base.Inout/lists`,
			name: "收支事项列表",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
        all: {
			url: `${config.API_URL}/adminapi/base.Inout/all`,
			name: "收支事项列表 -- 全部",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
		edit: {
			url: `${config.API_URL}/adminapi/base.Inout/edit`,
			name: "修改收支事项",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		add: {
			url: `${config.API_URL}/adminapi/base.Inout/add`,
			name: "添加收支事项",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		delete: {
			url: `${config.API_URL}/adminapi/base.Inout/delete`,
			name: "删除收支事项",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        detail: {
			url: `${config.API_URL}/adminapi/base.Inout/detail`,
			name: "收支事项详情",
			get: async function(params){
				return await http.get(this.url, params);
			}
		},
        update_status: {
			url: `${config.API_URL}/adminapi/base.Inout/update_default`,
			name: "修改收支事项状态",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
	},

    // 币种
    currency:{
		list: {
			url: `${config.API_URL}/adminapi/base.Currency/lists`,
			name: "获取币种列表",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
        all: {
			url: `${config.API_URL}/adminapi/base.Currency/all`,
			name: "获取币种列表 -- 全部",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
		edit: {
			url: `${config.API_URL}/adminapi/base.Currency/edit`,
			name: "修改币种",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		add: {
			url: `${config.API_URL}/adminapi/base.Currency/add`,
			name: "添加币种",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		delete: {
			url: `${config.API_URL}/adminapi/base.Currency/delete`,
			name: "删除币种",   
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        detail: {
			url: `${config.API_URL}/adminapi/base.Currency/detail`,
			name: "币种详情",
			get: async function(params){
				return await http.get(this.url, params);
			}
		},
		update_status: {
			url: `${config.API_URL}/adminapi/base.Currency/updateStatus`,
			name: "修改币种状态",
			post: async function(params){
				return await http.post(this.url, params);
			}
		},
    },

    // 中间商
    middle:{ 
		list: {
			url: `${config.API_URL}/adminapi/base.Middleman/lists`,
			name: "获取中间商列表",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
        all: {
			url: `${config.API_URL}/adminapi/base.Middleman/all`,
			name: "获取中间商列表 -- 全部",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
		edit: {
			url: `${config.API_URL}/adminapi/base.Middleman/edit`,
			name: "修改中间商",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		add: {
			url: `${config.API_URL}/adminapi/base.Middleman/add`,
			name: "添加中间商",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		delete: {
			url: `${config.API_URL}/adminapi/base.Middleman/delete`,
			name: "删除中间商",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        detail: {
			url: `${config.API_URL}/adminapi/base.Middleman/detail`,
			name: "中间商详情",
			get: async function(params){
				return await http.get(this.url, params);
			}
		},
		update_status: {
			url: `${config.API_URL}/adminapi/base.Middleman/updateStatus`,
			name: "修改中间商状态",
			post: async function(params){
				return await http.post(this.url, params);
			}
		},
    },

    allFlower: {
		url: `${config.API_URL}/adminapi/shop.ShopApply/allFlower`,
		name: "获取所有花型",
		get: async function(data={}){
			return await http.get(this.url, data);
		}
	},
}
